﻿using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Http;

namespace Simple.Services.System.FileInfo.Models
{
    public class FileInfoInputModel
    {
        /// <summary>
        /// 上传指定的文件夹id
        /// </summary>
        public string Folder { get; set; } = string.Empty;
        /// <summary>
        /// 文件
        /// </summary>
        public IFormFile? File { get; set; }

        /// <summary>
        /// 文件
        /// </summary>
        public List<IFormFile>? Files { get; set; }

        /// <summary>
        /// 文件来源
        /// </summary>
        [JsonConverter(typeof(JsonStringEnumConverter))]
        public FileSource? BusinessType { get; set; }

        /// <summary>
        /// 业务绑定ID
        /// </summary>
        public string? BusinessId { get; set; }
    }

    public class FileInfoInputModel1
    {
        /// <summary>
        /// 文件
        /// </summary>
        public IFormFile? File { get; set; }
    }
}
